<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Order detail_{$webname}</title>
<meta name='keywords'    content='{$keywords}'>
<meta name='description' content='{$description}'>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css" />
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css" />
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--公共样式结束-->
<!--页面样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/page_order_detail.css" />
<!--页面样式结束-->
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Js/jquery.SuperSlide.2.1.1.js"></script>
</head>

<body>
	<div class="zhezhao"></div>
<div class="zz">
	<!--top start-->
	<include file="Public:header" lang="true" />
	<!--top end-->
	<!--content start-->
	<div class="content clearfix">
		<div class="member_left">
			<ul>
				<li><a href="{:U('Member/index')}" class="color_main"><i class=" icon-user"></i>Information</a></li>
				<li><a href="{:U('Member/order_index')}" class="hover color_main"><i class=" icon-file"></i>Order</a></li>
				<li><a href="{:U('Member/address_index')}" class="color_main"><i class=" icon-list"></i>Address</a></li>
				<li><a href="{:U('Member/changePassword')}" class="color_main"><i class=" icon-unlock"></i>Password</a></li>
			</ul>
		</div>
		<!--member_right start-->
		<div class="member_right">
			<div class="mr_title color_main">My Order detail</div>
			<form action="{:U('/Public/login')}" method="post" id="formTable" name="formTable" class="formTable">
				<table class="order_detail">
					<tr>
						<td><em>Order Number:</em><span>{$order.orderno}</span></td>
						<td><em>Single time:</em><span>{$order.addtime|date='Y-m-d H:i:s',###}</span></td>
						<td><em>Restaurant Phone:</em><span>83258737</span></td>
					</tr>
					<tr>
						<td><em>Orders Address:</em><span>{$order.username}</span></td>
						<td><em>Mobile Number:</em><span>{$order.mobile}</span></td>
						<td><em>Orders Remarks:</em><span>{$order.content}</span></td>
					</tr>
				</table>
				<table class="lotab">
					<tr>
						<th>Food</th>
						<th>Unit price</th>
						<th>Quantity</th>
						<th>Subtotal</th>
						<th>Prop</th>
					</tr>
					<volist name="dishes" id="vo" >
						<tr>
							<td>{$vo.entitle}</td>
							<td>￥{$vo.price}</td>
							<td>{$vo.amount}</td>
							<td>￥{$vo.total}</td>
							<td><eq name="vo.attr" value=""><else /><span class="showprop" css="hide">Show Prop</span></eq></td>						
						</tr>
						<tr class="prop">
							<td colspan="5" >
								<volist name="vo.attr" id="k" >
									<div class="prop_main">
										<span class="prop_title">{$k.entitle}:</span><!-- 父级名称    -->
										<volist name="k.config" id="v">
											<span class="prop_text prop_name">{$v.entitle}</span><!-- 子类名称    -->
											<notempty name='v.num'><span class="prop_text prop_num">Num:{$v.num}</span></notempty>
											<notempty name='v.mprice'><span class="prop_text prop_price">￥{$v.mprice}</span></notempty>
										</volist>
									</div>
								</volist>
							</td>
						</tr>
					</volist>
					<tr>
						<th>Other expenses</th>
						<th>Unit price</th>
						<th>Quantity</th>
						<th>Subtotal</th>
						<th></th>
					</tr>
					<volist name="drink" id="vo" >
						<tr>
							<td>{$vo.title}</td>
							<td>￥{$vo.price}</td>
							<td>{$vo.amount}</td>
							<td>￥{$vo.total}</td>
							<td></td>
						</tr>
					</volist>
				</table>
			</form>
		</div>
		<!--member_right end-->
	</div>
	<!--content end-->
	
	<!--footer start-->
	<include file="Public:footer" lang="true" />
	<!--footer end-->
	<!--online start-->
		
	<!--online end-->
</div>
<script type="text/javascript">
	//返回顶部
	$(window).on('scroll',function(){
		var scrollTop = $(document).scrollTop();
	});
	
	$(function(){
		//悬浮框显示隐藏
		$('.online').on('hover',function(){
			$('.online ul').toggle();
			//$('.rlico').toggleClass('rlico2');
		});
		
		//点击显示属性
		$(".showprop").each(function(){
			$(this).on("click",function(){
				var css = $(this).attr("css");
				if(css=="hide"){
					$(this).parents("tr").next("tr").show();
					$(this).attr("css","show");
				}else{
					$(this).parents("tr").next("tr").hide();
					$(this).attr("css","hide");
				}
				
			});
		});
	
		$('.addressinput').change(function(){
			var val = $(this).val();
			$('.addressspan').html(val)
			if(val){
				$('.address_choose').show();
			}else{
				$('.address_choose').hide();
			}
		})
		
		$("#href_1").on('click',function(){
			var href = addic();
			$(this).attr(href);
			$(this).attr({ href: encodeURI(href) });
		});	
		
		var value= location.href.split("=")[1];
		$('.color_main em').html(value);
	
	});
	
	function addic(){
		var addval = $('.addressinput').val();
		return "restaurant.html?aid="+addval;
	}

</script>
</body>
</html>
